package models;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;

@Entity
@PrimaryKeyJoinColumn(name="id", referencedColumnName="id")
public class CommentSerie extends Comment{

	@ManyToOne
	private Serie serie;

	public CommentSerie(User user, String comment, Serie serie) {
		super(user, comment);
		this.serie = serie;
	}

	public Serie getSerie() {
		return serie;
	}

	public void setSerie(Serie serie) {
		this.serie = serie;
	}
	

}
